package com.qf.service.fallback;

import com.qf.entity.Medicineii;
import com.qf.pojo.BaseResult;
import com.qf.service.MedicineService;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;


@Component
public class MedicineFallBack implements MedicineService {
    BaseResult baseResult = new BaseResult();

    @Override
    public BaseResult findAllMedicineInfo(@RequestParam("page")Integer page, @RequestParam("size")Integer size, @RequestParam("name")String name) {
        BaseResult baseResult = new BaseResult();
        baseResult.setInfo("请耐心等待，正在去数据库查询");

        return baseResult;
    }
    @Override
    public BaseResult findByIdMedicine(Integer mIdi) {
        baseResult.setInfo("请耐心等待findByIdMedicine，正在去数据库查询");

        return baseResult;
    }

    @Override
    public BaseResult addMedicine(Medicineii medicineii) {
        baseResult.setInfo("请耐心等待addMedicine，正在去数据库查询");

        return baseResult;
    }

    @Override
    public BaseResult updateMedicine(Medicineii medicineii) {
        baseResult.setInfo("请耐心等待updateMedicine，正在去数据库查询");

        return baseResult;
    }

    @Override
    public BaseResult deleteMedicineById(Integer midii) {
        baseResult.setInfo("请耐心等待deleteMedicineById，正在去数据库查询");

        return baseResult;
    }
}
